package com.learning.spring.aop.aspectj.annotation.advice;

import com.learning.spring.aop.aspectj.AopService;
import com.learning.spring.aop.aspectj.AopServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * ClassName: AnnotationAdviceConfig
 * Description:
 * Date: 2019/5/6 9:34 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Configuration
@EnableAspectJAutoProxy
public class AnnotationAdviceConfig {

    @Bean
    public AopService aopServiceTarget() {
        return new AopServiceImpl();
    }

    @Bean
    public AnnotationAdviceAspect annotationAdvice() {
        return new AnnotationAdviceAspect();
    }


}
